package com.studyspringcloud.order.remote;

import com.studyspringcloud.order.VO.ResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Service
@FeignClient(name="product")
public interface ProductRemote {
    //需要匹配服务提供者接口名称
    @RequestMapping(value = "/list")
    public String list();

    @RequestMapping("/getProductInfoById")
    public ResultVO getProductInfoById(@RequestParam(value="id") Integer id);

    @RequestMapping("/findCategoryById")
    public ResultVO  findCategoryById(@RequestParam(value="id")Integer id);
}
